﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Yipusoft.SixAcquaint.BLL;

public partial class BasicBase_WaterSource_StandardList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string standarID = Request["id"];
            if (String.IsNullOrEmpty(Request["id"]))
                standarID = "f411fb9c-0951-4a9a-9a6d-e1b1b224ade4";
            gvStandard.DataSource = KeyUnit.GetStandardByID(standarID);
            gvStandard.DataBind();
            if (gvStandard.Rows.Count == 0)
            {
                Response.Redirect("InsertKeyUnit.aspx?sid=" + standarID, true);
            }
        }
    }
}
